package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.athlete_omit;
import com.ruoyi.system.domain.athleteMatchDto;
import com.ruoyi.system.domain.athleteSkeetDateDto;
import com.ruoyi.system.domain.athleteSkeetTargetDto;
import com.ruoyi.system.domain.vo.athleteSkeetTargetVo;
import com.ruoyi.system.domain.vo.athleteSkeetVo;
import com.ruoyi.system.mapper.athleteSkeetMapper;
import com.ruoyi.system.service.athleteSkeetService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class athleteSkeetServiceImpl implements athleteSkeetService {

    @Resource
    athleteSkeetMapper mapper;

    @Override
    public List<athleteSkeetDateDto> getSkeetByDate(athleteSkeetVo athleteSkeetVo) {
        return mapper.selectDailyTrainingStats(athleteSkeetVo);
    }

    @Override
    public List<athleteSkeetTargetDto> getTrainingStatsByDateAndId(athleteSkeetTargetVo athleteSkeetTargetVo) {
        return  mapper.selectTrainingStats(athleteSkeetTargetVo);
    }

    @Override
    public athlete_omit getathleteById(Long id) {
        return mapper.selectAthleteById(id);
    }

    @Override
    public List<athleteMatchDto> getMatch(Long id) {
        return mapper.selectAthleteMatchById(id);
    }

}
